using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class Zd_ViTri: BusinessObjectBase
	{

		#region InnerClass
		public enum Zd_ViTriFields
		{
			ViTri_ID,
			MaViTri,
			TenViTri,
			GhiChu
		}
		#endregion

		#region Data Members

			int _viTri_ID;
			string _maViTri;
			string _tenViTri;
			string _ghiChu;

		#endregion

		#region Properties

		public int  ViTri_ID
		{
			 get { return _viTri_ID; }
			 set
			 {
				 if (_viTri_ID != value)
				 {
					_viTri_ID = value;
				 }
			 }
		}

		public string  MaViTri
		{
			 get { return _maViTri; }
			 set
			 {
				 if (_maViTri != value)
				 {
					_maViTri = value;
				 }
			 }
		}

		public string  TenViTri
		{
			 get { return _tenViTri; }
			 set
			 {
				 if (_tenViTri != value)
				 {
					_tenViTri = value;
				 }
			 }
		}

		public string  GhiChu
		{
			 get { return _ghiChu; }
			 set
			 {
				 if (_ghiChu != value)
				 {
					_ghiChu = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("ViTri_ID", "ViTri_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MaViTri", "MaViTri",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenViTri", "TenViTri",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("GhiChu", "GhiChu",50));
		}

		#endregion

	}
}
